package com.szh.taobaounion.model;

import com.szh.taobaounion.model.domain.CateGories;
import com.szh.taobaounion.model.domain.HomePagerContent;
import com.szh.taobaounion.model.domain.OnSellContent;
import com.szh.taobaounion.model.domain.SearchRecommend;
import com.szh.taobaounion.model.domain.SearchResult;
import com.szh.taobaounion.model.domain.SelectedContent;
import com.szh.taobaounion.model.domain.SelectedPageCategory;
import com.szh.taobaounion.model.domain.TicketResult;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.Url;

public interface Api {
    @GET("discovery/categories")
    Call<CateGories> getCategories();

    @GET
    Call<HomePagerContent>getHomePagerContent(@Url String url);

    @POST("tpwd")
    Call<TicketResult>getTicket(@Body TicketParams ticketParams);
    @GET("recommend/categories")
    Call<SelectedPageCategory>getSelectedCategories();
    @GET()
    Call<SelectedContent>getSelectedPageContent(@Url String url);
    @GET()
    Call<OnSellContent>getOnSellPageContent(@Url String url);

    @GET("search/recommend")
    Call<SearchRecommend> getRecommendWords();
    @GET("search")

    Call<SearchResult> doSearch(@Query("page") int page, @Query("keyword") String keyword);
}
